package org.xrebel.configure;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Data
@Service
public class XrebelProperties {

    /**
     * 是否启用热部署支持
     */
    @Value("${xrebel.enabled:true}")
    private boolean enabled;

    /**
     * 热部署线程名称前缀
     */
    @Value("${xrebel.thread-name-prefix:mybatis-xml-reload}")
    private String threadNamePrefix;

    /**
     * 监控的xml文件路径
     */
    @Value("${xrebel.mapper-locations:classpath*:*Mapper*/**/*.xml, classpath*:*mapper*/**/*.xml}")
    private List<String> mapperLocations;

}
